//
//  CTPSpotModel.h
//  citipad
//
//  Created by Chih Yuan Liu on 3/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CTPSpot.h"
#import "FMDatabase.h"

@interface CTPSpotModel : NSObject {
	FMDatabase* mydb;
	NSMutableArray * array;
	NSString * city;
}

-(id) initWithCityName:(NSString*)cityName;
-(void) loadIntoArray:(NSString*)cityName;
-(void) createDB;
-(void) removeSpot:(CTPSpot*)spot;
-(void) addSpot:(CTPSpot*)spot;

-(NSInteger) GetCount;
-(CTPSpot*) GetItemAtIndex:(int)index;

@end
